package com.earnings.okhttputils.utils.ui.activity.user;

import android.view.View;

import com.earnings.R;
import com.earnings.okhttputils.utils.UrlConstant.Constant;
import com.earnings.okhttputils.utils.god.GodLeftHandBaseActivity;
import com.earnings.okhttputils.utils.god.Listener.GodOnClickListener;
import com.earnings.okhttputils.utils.ui.activity.common.RecordDetailsActivity;


/*
余额-提现-返回结果
 */

public class UserBalanceWithdrawalsResultActivity extends GodLeftHandBaseActivity implements GodOnClickListener {

    @Override
    protected int onCreateLayoutId() {
        return R.layout.activity_user_balance_withdrawals_result;
    }

    @Override
    protected void init() {
        setTitle( "结果详情" );
        showRightTextView( "完成" );
        setText( R.id.bank, bundleData.getString( "bank" ) );
        setText( R.id.price, bundleData.getString( "price" ) + "元" );
        setText( R.id.msg, bundleData.getString( "msg" ) );
        setOnClickListener( this, R.id.sumbit, R.id.top_right_tv );
    }


    @Override
    public void OnClickListener(View view) {
        int i = view.getId();
        if (i == R.id.sumbit) {
            bundleData.putInt( "type", Constant.RECORD_TYPE_WITHDRAWALS );
            skipActivity( RecordDetailsActivity.class );
            finish();
        } else if (i == R.id.top_right_tv) {
            finish();

        }
    }
}
